package com.sam.im.heiqun.uis.widgets.sidebar;

import java.util.Comparator;

/**
 * Created by wangguodong on 2017/1/8.
 */
public class CountryComparator implements Comparator<CountrySortModel> {
    @Override
    public int compare(CountrySortModel o1, CountrySortModel o2)
    {

        if (o1.sortLetters.equals("@") || o2.sortLetters.equals("#")|| o2.sortLetters.equals("66666"))
        {
            return -1;
        }
        else if (o1.sortLetters.equals("#") || o2.sortLetters.equals("@"))
        {
            return 1;
        }
        else
        {
            return o1.sortLetters.compareTo(o2.sortLetters);
        }
    }
}
